for %%f in (testdata/*.int) do (
    echo %%f
    diagnostic.exe <testdata/%%f >testdata/%%~nf.res 2>testdata/%%~nf.tme
)